<template>
    <div class="loading_box">
        <div class="loading">
        <div><span></span></div>
        <div><span></span></div>
        <div><span></span></div>
        <div><span></span></div>
    </div>
    </div>
</template>
<script>
export default {};
</script>
<style scoped>
.loading_box{
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;align-items: center;
    padding-bottom: 200px;
}
.loading{
    width: 30px;
    height: 30px;
    margin:  auto;
    position: relative;
    animation: load 3s linear infinite;
}
.loading div{
    width: 100%;
    height: 100%;
    position: absolute;
}
.loading span{
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #99CC66;
    position: absolute;
    left: 50%;
    margin-top: -10px;
    margin-left: -10px;
    animation: changeBgColor 3s ease infinite;
}
@keyframes load{
    0%{
        transform: rotate(0deg);
    }
    33.3%{
        transform: rotate(120deg);
    }
    66.6%{
        transform: rotate(240deg);
    }
    100%{
        transform: rotate(360deg);
    }
}
@keyframes changeBgColor{
    0%,100%{
        background: #99CC66;
    }
    33.3%{
        background: #FFFF66;
    }
    66.6%{
        background: #FF6666;
    }
}
.loading div:nth-child(2){
    transform: rotate(120deg);
}
.loading div:nth-child(3){
    transform: rotate(240deg);
}
.loading div:nth-child(2) span{
    animation-delay: 1s;
}
.loading div:nth-child(3) span{
    animation-delay: 2s;
}
</style>